package cn.sdack.go.users.dao;

import cn.sdack.go.common.entities.users.DictItemEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author sdack
 * @date 2024/2/17
 */
public interface DictItemDao  extends JpaRepository<DictItemEntity,Long> {

    DictItemEntity findByPidAndVAndDelIsNull(Long pid,String v);

    List<DictItemEntity> findAllByCodeAndDelIsNull(String code);

    List<DictItemEntity> findAllByPidAndVAndDelIsNull(Long pid, String v);

}
